//
//  MineSetPassController.m
//  NoNameAmazing
//
//  Created by liuyang on 2017/7/6.
//  Copyright © 2017年 北京执行力科技有限公司. All rights reserved.
//

#import "MineSetPassController.h"
#import "MineSetController.h"
#import "LoginViewController.h"
@interface MineSetPassController ()

@end

@implementation MineSetPassController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColorFromRGB(0xEFEFF5);
}
- (IBAction)setPassClick:(id)sender {
    MineSetController *mineSetController = [[MineSetController alloc] init];
    [self.navigationController pushViewController:mineSetController animated:YES];
}
- (IBAction)backLogin:(id)sender {
    NSString * BaseUrl = [us objectForKey:kBaseUrL];
    NSUserDefaults *defatluts = [NSUserDefaults standardUserDefaults];
    NSDictionary *dictionary = [defatluts dictionaryRepresentation];
    for(NSString *key in [dictionary allKeys]){
        [defatluts removeObjectForKey:key];
        [defatluts synchronize];
    }
    [us setValue:BaseUrl forKey:kBaseUrL];
    LoginViewController *login = [[LoginViewController alloc]init];
    UINavigationController *nav =[[UINavigationController alloc]initWithRootViewController:login];
    [self.view.window setRootViewController:nav];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
